package com.jytc.mh.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * MhImgmgr entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "mh_imgmgr")
public class MhImgmgr implements java.io.Serializable {

	// Fields

	private Integer imgId;
	private String imgTitle;
	private String imgDesc;
	private String imgPath;
	private String imgCreateTime;
	private Integer imgCreator;
	private String imgType;
	private String validFlag;

	// Constructors

	/** default constructor */
	public MhImgmgr() {
	}

	/** minimal constructor */
	public MhImgmgr(String imgPath) {
		this.imgPath = imgPath;
	}

	/** full constructor */
	public MhImgmgr(String imgTitle, String imgDesc, String imgPath,
			String imgCreateTime, Integer imgCreator, String imgType,
			String validFlag) {
		this.imgTitle = imgTitle;
		this.imgDesc = imgDesc;
		this.imgPath = imgPath;
		this.imgCreateTime = imgCreateTime;
		this.imgCreator = imgCreator;
		this.imgType = imgType;
		this.validFlag = validFlag;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "IMG_ID", unique = true, nullable = false)
	public Integer getImgId() {
		return this.imgId;
	}

	public void setImgId(Integer imgId) {
		this.imgId = imgId;
	}

	@Column(name = "IMG_TITLE", length = 100)
	public String getImgTitle() {
		return this.imgTitle;
	}

	public void setImgTitle(String imgTitle) {
		this.imgTitle = imgTitle;
	}

	@Column(name = "IMG_DESC")
	public String getImgDesc() {
		return this.imgDesc;
	}

	public void setImgDesc(String imgDesc) {
		this.imgDesc = imgDesc;
	}

	@Column(name = "IMG_PATH", nullable = false, length = 100)
	public String getImgPath() {
		return this.imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	@Column(name = "IMG_CREATE_TIME", length = 14)
	public String getImgCreateTime() {
		return this.imgCreateTime;
	}

	public void setImgCreateTime(String imgCreateTime) {
		this.imgCreateTime = imgCreateTime;
	}

	@Column(name = "IMG_CREATOR")
	public Integer getImgCreator() {
		return this.imgCreator;
	}

	public void setImgCreator(Integer imgCreator) {
		this.imgCreator = imgCreator;
	}

	@Column(name = "IMG_TYPE", length = 1)
	public String getImgType() {
		return this.imgType;
	}

	public void setImgType(String imgType) {
		this.imgType = imgType;
	}

	@Column(name = "VALID_FLAG", length = 1)
	public String getValidFlag() {
		return this.validFlag;
	}

	public void setValidFlag(String validFlag) {
		this.validFlag = validFlag;
	}

}